<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 流年 <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 应用公共文件
define('successCode',200);
define('errorCode',500);

define('successMsg','操作成功');
define('errorMsg','服务器错误');


function jsonResponse($code = '500',$msg = '服务器错误',$data = []){
    $arr = array();
    $arr['code'] = $code;
    $arr['msg'] = $msg;
    $arr['data'] = $data;
    echo json_encode($arr,JSON_UNESCAPED_UNICODE);
}
